package com.first.run.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.first.run.entity.SysPermission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    /**
     * 通过角色id查询 权限信息
     * @param roleId
     * @return
     */
    List<SysPermission> listPermissionByRoleId(Integer roleId);

}
